package com.platform.core.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Description: 消息记录实体类
 *
 * @author Coder
 */
@Setter
@Getter
@Entity
@Table(name = "ncloud_msg_record")
public class SysMsgRecordEntity implements Serializable {

    /**
    * 主键标识
    */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    /**
    * 消息id
    */
    @Column(name = "msg_id" )
    private String msgId;

    /**
    * 收件人
    */
    @Column(name = "recevie_user" )
    private String recevieUser;

    /**
    * 读取状态
    */
    @Column(name = "read_status" )
    private String readStatus;

    /**
    * 是否删除
    */
    @Column(name = "flag" )
    private String flag;


    /**
     * 读信时间
     */
    @Column(name = "read_time" )
    private LocalDateTime readTime;
}
